package hhm.android.account

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel

class CreateLibraryTwoViewModel : ViewModel() {
    var babyIcon = MutableLiveData<String>()
    var babyName = MutableLiveData<String>()
    var babyBirthday = MutableLiveData<String>()
    var babySex = MutableLiveData<Int>()
    val sexBoy = 1
    val sexGirl = 2

    var canNext = MutableLiveData(false)

    fun canClick() {
        canNext.value = !babyName.value.isNullOrEmpty() && !babyBirthday.value.isNullOrEmpty() && (babySex.value == sexBoy || babySex.value == sexGirl)
    }
}